package com.hh.ssm.service;

import com.hh.ssm.bean.Employee;
import com.hh.ssm.dao.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;
    //获取全部员工
    public List<Employee> getAll(){
        return employeeMapper.selectByExampleWithDepartment(null);
    }
}
